$(function(){
    
    $.get('/weixin/getQrcodeurl', '', function(data) {
            console.log(data)
            jobj = JSON.parse(data);
            $(".wxpic").attr({src: '/static/weixin/'+jobj.Qrpic});
            $.post('/weixin/tologin',{uuid:jobj.uuid}, function(data1) {
                    jobj1= JSON.parse(data1);
                    if (jobj1.code==1) {
                    	document.location.href="/weixin/";
                    }else{
                    	alert(jobj1.msg)
                    }
                });            
        });    
    
})


